var index=0;
var imgs=["../images/1.jpg","../images/2.jpg","../images/3.jpg","../images/4.jpg"];
function qiehuan(){
    document.getElementById("img").src=imgs[index];
    index++;
    if(index > 3){
        index=0;  
    }
}
setInterval("qiehuan()",1200);
